package com.zmn.plat.business.interfaces.orderconfig.track.reason;

import com.zmn.plat.common.dto.orderconfig.track.OrderTrackReasonDRO;
import com.zmn.plat.model.entity.orderconfig.track.reason.OrderTrackReason;

import java.util.List;

/**
 * @author tanbiao
 * @description
 * @modifier
 * @since 2020/12/1 18:12
 **/
public interface OrderTrackReasonBService {

    /**
     * 描述：跟单内容id查询跟单缘由
     *
     * @param trackId
     * @author tanbiao
     * @since 2020/11/17 16:42
     * @return java.lang.Integer
     * @modifier
     */
    List<OrderTrackReasonDRO> listByTrackId(Integer trackId);

    /**
     * 描述：跟单内容id集合查询跟单缘由
     *
     * @param trackIdList
     * @return java.lang.Integer
     * @author ligang
     * @modifier
     * @since 2022/02/21 16:42
     */
    List<OrderTrackReasonDRO> listByTrackIds(List<Integer> trackIdList);

    /**
     * 描述：新增或者修改 名称不能重复
     *
     * @param orderTrackReason
     * @author tanbiao
     * @since 2020/11/17 16:42
     * @return java.lang.Integer
     * @modifier
     */
    Integer addEdit(OrderTrackReason orderTrackReason, String operator);

}
